<?php 
$Content = QContext::instance();
$base_url = $Content->requestUDI();

?>
<form id="pagerForm" method="get" action="<?php echo url($base_url,null,null,array('mode'=>'standard'));?>">
		<input type="hidden" name="pageNum" value="<?php echo $pagination['current'];?>" /> <!--【必须】value=1可以写死-->
		<input type="hidden" name="numPerPage" value="<?php echo $pagination['page_size'];?>" /> <!--【可选】每页显示多少条-->
		<input type="hidden" name="orderField" value="<?php echo $orderField;?>" />
		<input type="hidden" name="orderDirection" value="<?php echo $orderDirection;?>" />
</form>

<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="<?php echo url($base_url,null,null,array('mode'=>'standard'));?>" method="get">
	<div class="searchBar">
		<table class="searchContent">
			<tr>
				
			<td>
				<label>金额：</label>
				<input type="text" size="10" class="number" name="addmoney" value="<?php echo isset($param['"addmoney"'])?$param['"addmoney"']:'';?>"/>
			</td>
			<td>
				<span>充值帐号：</span>
				<input type="text" name="payuser" value="<?php echo isset($param['payuser'])?$param['payuser']:'';?>"/>
				<input type="hidden" name="_querymethod[payuser]" value="like">
			</td>
			<td>
				<span>奖励帐号：</span>
				<input type="text" name="unionuser" value="<?php echo isset($param['unionuser'])?$param['unionuser']:'';?>"/>
				<input type="hidden" name="_querymethod[unionuser]" value="like">
			</td>
			
			
			
			
			<td>
				<span>开始日期：</span>
				<input type="text" class="date" name="created_timestart" value="<?php echo isset($param['created_timestart'])?$param['created_timestart']:'';?>"/>
				-
			</td>
			<td>
				<span>结束日期：</span>
				<input type="text" class="date" name="created_timeend" value="<?php echo isset($param['created_timeend'])?$param['created_timeend']:'';?>"/>
				
			</td>
			</tr>
		</table>
		
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit" value="fuck">检索</button></div></div></li>
			</ul>
		</div>
	</div>
	</form>
	
</div>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
		
		</ul>
	</div>
	<table class="table" width="100%" layoutH="228">
		<thead>
			<tr>
				<th width="5%"><input type="checkbox" group="ids[]" class="checkboxCtrl">ID</th>
				<th width="30%">充值帐号 </th>
				<th width="30%"  >奖励帐号</th>
				<th width="10%" >金额</th>
				<th width="20%" >日期</th>
				
			</tr>
		</thead>
		<tbody>
			<?php foreach ($item as $k=>$v):?>
			<tr target="id" rel="<?php echo $v->id?>">
				<td><input name="ids[]" value="<?php echo $v->id?>" type="checkbox"><?php echo $v->id;?></td>
			
				<td><?php echo $v->payuser;?></td>
				<td><?php echo $v->unionuser;?></td>
				<td><?php echo $v->addmoney;?></td>
				<td><?php echo date('Y-m-d H:i:s',$v->created);?></td>
				
			</tr>
			<?php endforeach;?>
		</tbody>
	</table>
<div class="panelBar">
			<div class="pages">
			<span>显示</span>
			<select name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="20" <?php if(isset($param['numPerPage'])&&$param['numPerPage']==20)echo 'selected=selected';?>>20</option>
				<option value="50" <?php if(isset($param['numPerPage'])&&$param['numPerPage']==50)echo 'selected=selected';?>>50</option>
				<option value="100" <?php if(isset($param['numPerPage'])&&$param['numPerPage']==100)echo 'selected=selected';?>>100</option>
				<option value="200" <?php if(isset($param['numPerPage'])&&$param['numPerPage']==200)echo 'selected=selected';?>>200</option>
				<option value="2000" <?php if(isset($param['numPerPage'])&&$param['numPerPage']==2000)echo 'selected=selected';?>>2000</option>
				<option value="5000" <?php if(isset($param['numPerPage'])&&$param['numPerPage']==5000)echo 'selected=selected';?>>5000</option>
				<option value="10000" <?php if(isset($param['numPerPage'])&&$param['numPerPage']==10000)echo 'selected=selected';?>>10000</option>
			
			</select>
				<span>共 <?php echo $pagination['record_count'];?> 条</span>
			</div>
		
		<div class="pagination" targetType="navTab" totalCount="<?php echo $pagination['record_count'];?>" numPerPage="<?php echo $pagination['page_size'];?>" pageNumShown="10" currentPage="<?php echo $pagination['current'];?>" ></div>

	</div>	
</div><iframe width="0" height="0" id="down" name="down"></iframe>